import { createSSRApp } from "vue";
import App from "./App.vue";
import "uno.css";
import * as Pinia from "pinia";
import { createUnistorage } from "pinia-plugin-unistorage";

export function createApp() {
  const app = createSSRApp(App);
  const store = Pinia.createPinia();
  // 注入持久化存储 👇
  store.use(createUnistorage());
  app.use(store);
  return {
    app,
    Pinia,
  };
}
